package ex3.controller.demo;

/**
 * @AUTHOR 尹书岿
 * @DATE 2024/12/11 14:05
 * @DESCRIBE
 */
public class commonMovie extends movie{

    @Override
    double conmputerMoney() {
        double result = 1.5;
        if (this.days > 3){
            result += (this.days - 3) * 1.5;
        }
        return result;
    }

    @Override
    int computerScore() {
        return 1;
    }

    public commonMovie(int days, String name) {
        super(days, name);
    }
}
